package com.audaque.springboot.foshanupload.web.config;

import com.audaque.springboot.foshanupload.web.register.MyErrorPageRegister;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.web.server.ErrorPage;
import org.springframework.boot.web.server.ErrorPageRegistrar;
import org.springframework.boot.web.server.ErrorPageRegistry;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpStatus;

/**
 * Description: 不推荐
 */
@SpringBootConfiguration
public class ErrorPageRegisterConfigration  {

    @Bean
    public ErrorPageRegistrar errorPageRegistrar(){
        return new MyErrorPageRegister();
    }
}
